<div class="app-container with-navbar with-tabbar" ng-controller="PreSalesController" style="padding-top: 44px;">
    <div class="navbar fixed-top" style="height:44px;">
        <div class="navbar-title fixed-top">
            <!--改为土猪预售-->
            <div style="width:100%;" ><img src="img/p_tit.png" style="height:35px;"></div>
        </div>
    </div>
    <div class="app-content" >
        <div class="search-product" ng-if="rows && rows.length">
            <div class="product-item" ng-repeat="item in rows track by $index" style="border: 0px; border-right: 0px;">
                <div ng-click="touchProduct(item.part_id)">
                    <div class="item-photo">
                        <img ng-src="image/default-photo.png" lazy-img="{{item.cover_img+'?x-oss-process=image/resize,h_152'}}" />
                    </div>
                    <div class="item-name" style="font-size: 18px; line-height: 20px; padding: 0 12px;">{{item.name}}</div>
                    <div class="item-footer">
                        <div class="footer-price" style="font-size: 18px; color: #e60012; padding: 0 12px;">{{item.pre_pay/100| currency:"￥"}}</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="empty" ng-if="isEmpty">
            <div class="empty-item">
                <img class="item-logo" ng-src="image/logo-product-empty.png" />
                <div class="item-text">暂无任何商品</div>
            </div>
        </div>
        <div class="loading-more" ng-if="isLoaded && isLoading">
            正在加载...
        </div>
        <div class="loading-more" ng-if="isLoaded && isLastPage">
            全部加载完毕
        </div>
    </div>
    <div class="tabbar fixed-bottom">
        <div class="tab " ng-click="goHome()">
            <img class="tab-icon" ng-src="image/tab-home-normal.png" />
        </div>
        <div class="tab">
            <a href="#/goods/?cat_id=1&navTitle=热销产品&navStyle=default"><img class="tab-icon" ng-src="image/tab-category-normal.png" /></a>
        </div>
        <div class="tab" ng-click="goCart()">
            <img class="tab-icon" ng-src="image/tab-cart-normal.png" />
            <div class="tab-badge" ng-if="cartModel.total > 0">
                {{cartModel.total}}
            </div>
        </div>
        <div class="tab" ng-click="goProfile()">
            <img class="tab-icon" ng-src="image/tab-profile-normal.png" />
        </div>
    </div>
</div>
